{extend name="base" /} {block name="body"}
<div class="layui-body">
	<!--tab标签-->
	<div class="layui-tab layui-tab-brief">
		<ul class="layui-tab-title">
			<li class="layui-this">商品设置</li>
		</ul>
		<div class="layui-tab-content">
			<div class="layui-tab-item layui-show">
				<form class="layui-form form-container" action="{:url('index')}" method="post">
					<div class="layui-form-item">
						<label class="layui-form-label">名称</label>
						<div class="layui-input-block">
							<input type="text" name="name" value="{$model.name}" required lay-verify="required" class="layui-input">
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">英文名称</label>
						<div class="layui-input-block">
							<input type="text" name="en_name" value="{$model.en_name}" required lay-verify="required" class="layui-input">
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">缩略图</label>
						<div class="layui-input-block">
							<img id="thumb_" class="img-see" src="{$model.thumb}" />
							<input type="text" name="thumb_img" readonly class="layui-input layui-input-inline">
							<input type="file" id="thumb_img" name="file" class="layui-upload-file">
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">状态</label>
						<div class="layui-input-block">
							<input type="radio" name="status" value="1" title="认筹" {if condition="$model.status==1" } checked="checked" {/if}>
							<input type="radio" name="status" value="2" title="发行" {if condition="$model.status==2" } checked="checked" {/if}>
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">认筹价格</label>
						<div class="layui-input-block">
							<input type="text" name="price" required lay-verify="required" value="{$model.price}" class="layui-input">
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">认筹数量</label>
						<div class="layui-input-block">
							<input type="text" name="stock" required lay-verify="required" value="{$model.stock}" class="layui-input">
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">认筹开始时间</label>
						<div class="layui-input-block">
							<input type="text" id="datetime" name="add_time" value="{$model.add_time}" class="layui-input">
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">认筹结束时间</label>
						<div class="layui-input-block">
							<input type="text" id="datetime1" name="end_time" value="{$model.end_time}" class="layui-input">
						</div>
					</div>
					<div class="layui-form-item">
						<div class="layui-input-block">
							<input type="hidden" name="id" value="{$model.id}" />
							<button class="layui-btn" lay-submit lay-filter="*">保存</button>
							<button type="reset" class="layui-btn layui-btn-primary">重置</button>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
</div>
{/block}